/**
 * 
 */
package xiaojian.toolkit.netty.handler.codec.http.reactor;

import xiaojian.toolkit.ebus.EventBus;
import io.netty.handler.codec.http.FullHttpRequest;


/**
 * @author hp
 *
 */
public class RawRequestRecorder implements HttpReactor {

    private EventBus    			eventBus;
    private	String					eventRecordRequest;
    
	public EventBus getEventBus() {
		return eventBus;
	}

	public void setEventBus(EventBus eventBus) {
		this.eventBus = eventBus;
	}

	public String getEventRecordRequest() {
		return eventRecordRequest;
	}

	public void setEventRecordRequest(String eventRecordRequest) {
		this.eventRecordRequest = eventRecordRequest;
	}

	@Override
	public void onHttpRequest(FullHttpRequest request) {
        eventBus.fireEvent(eventRecordRequest, request);
	}

}
